<?php
$this->beginWidget('bootstrap.widgets.TbBox', array(
	'title' => array('个人资料'),
	'headerIcon' => 'icon-user',
));

$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'enableClientValidation' => true,
	'enableAjaxValidation' => false,
)); /* @var $form TbActiveForm */

// alert tips
$this->widget('bootstrap.widgets.TbAlert', array(
	'block' => true, // display a larger alert block?
	'fade' => true, // use transitions?
	'closeText' => '×', // close link text - if set to false, no close link is displayed
	'alerts' => array('error', 'success'),
));
?>
<div class="row-fluid">
	<div class="span6"><?php echo $form->textFieldRow($model, 'username', array('class' => 'span10', 'readonly' => true)); ?></div>
	<div class="span6"><?php echo $form->textFieldRow($model, 'email', array('class' => 'span10')); ?></div>
</div>
<div class="row-fluid">
	<div class="span6"><?php echo $form->passwordFieldRow($model, 'password', array('class' => 'span10')); ?></div>
	<div class="span6"><?php echo $form->passwordFieldRow($model, 'password2', array('class' => 'span10')) ?></div>
</div>
<div class="row-fluid row-bottom">
	<div class="span6">
		<?php
		$this->widget('bootstrap.widgets.TbButton', array(
			'buttonType' => 'submit',
			'type' => 'primary',
			'label' => '保存',
		));
		?>
	</div>
</div>
<?php
$this->endWidget();
$this->endWidget();
?>